{extend name="public/common"} {block name="body"}

<style type="text/css">
.bg-1 {
    height: 40px;
    background-color: #e5e5e5;
    border-bottom: 1px solid #e4e7ed;
}
 .radius:hover{
 	background:#e5e5e5;
 	border-color: #e5e5e5;
 	color: #333;
 }
 span:hover{
 	color: #333;
 }
.btn-warning {
    color: #333;
    background-color: #e5e5e5;
    border-color: #e5e5e5;
}
.line{
	position: absolute;
	right: 0;
	top: 13px;
	background: #636363;
	width: 1px;
	height: 14px;
	overflow: hidden;
}
.l{
	position: relative;
}
</style>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    系统管理
    <span class="c-gray en">&gt;</span>
    运营管理
    <span class="c-gray en">&gt;</span>
    红包管理
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
<div class="cl pd-5 bg-1 bk-gray mt-20"> 
  
  <span class="l" style=""><a onclick="check_chance('存款红包列表','/admin/Operate/bonusDeposit')" class="btn btn-primary radius">存款红包 </a><span class="line">◆</span></span>
  <span class="l" style=""><a onclick="check_chance('等级红包列表','/admin/Operate/bonusChance?type=class')" class="btn btn-primary radius">等级红包 </a><span class="line">◆</span></span>
  <span class="l" style=""><a href="/admin/Operate/bonusNumAdd" class="btn btn-warning radius" style="height: 40px;line-height: 32px;">新增抢红包次数 </a></span>
</div>
 <div class="text-c" style="padding :20px 0;">
    <form action="" enctype="application/x-www-form-urlencoded" method="post" style="margin-left:20px;float:left;">红包开始时间从：
    <input type="text" name="start_time" value="{$bonus_lay.start_time}" id="sDate1" onfocus="WdatePicker({dateFmt:'HH:mm:ss'})" class="input-text Wdate" style="width:120px;"> 到：
    <input type="text" name="end_time" id="sDate2" onfocus="WdatePicker({dateFmt:'HH:mm:ss'})" value="{$bonus_lay.end_time}"  class="input-text Wdate" style="width:120px;margin-right:15px;">
	    红包状态：<input type="radio" name="flip" value="0"{if(!isset($bonus_lay.flip) || $bonus_lay.flip == 0)}checked{/if}>关&nbsp&nbsp&nbsp
	    <input type="radio" name="flip" value="1" {if(!isset($bonus_lay.flip) || $bonus_lay.flip == 1)}checked{/if}>存款红包&nbsp&nbsp&nbsp
	    <input type="radio" name="flip" value="2"{if(!isset($bonus_lay.flip) || $bonus_lay.flip == 2)}checked{/if}>等级红包&nbsp&nbsp&nbsp
    <button class="btn btn-success" type="submit" style="margin-right:20px;"><i class="Hui-iconfont">&#xe665;</i> 确定</button>
  </form>
  </div>

<div class="page-container">
  <div id="tab-system" class="HuiTab">
    <div class="tabCon">
      <div class="mt-20">
        <table
          class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
          <thead>
            <tr class="text-c">
              <th>ID</th>
              <th>存款金额</th>
              <th>抽奖次数</th>
              <th>操作</th>
            </tr>
          
          </thead>
          <tbody>
            {volist name="list" id="DL"}
          
			<tr class="text-c">
			  <td>{$DL.id}</td>
			  <td>{$DL.saving}</td>
			  <td>{$DL.num}</td>
			  <td>
			  	<a href='/admin/Operate/bonusNumEdit?id={$DL.id}' title="修改"><i class="Hui-iconfont">&#xe6df;</i></a>&nbsp;&nbsp;&nbsp;
			  	<a href='javascript:void(0);' onclick='delUserClass({$DL.id})' title="删除"><i class="Hui-iconfont">&#xe609;</i></a>
			  </td>
			     {/volist}
			</tr>

          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
</div>
		</div>

{/block}

{block name="js"} 
<script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript">
$(function() {
  $('.skin-minimal input').iCheck({
    checkboxClass : 'icheckbox-blue',
    radioClass : 'iradio-blue',
    increaseArea : '20%'
  });
  $("#tab-system").Huitab({
    index : 0
  });
});



function check_chance(title,url,id,w,h){
	layer_show(title,url,'1200',h);
}

function delUserClass(id){
	//删除用户等级
	layer.confirm('确认删除该条吗？', {
		  btn: ['确认','取消'] //按钮
		}, function(){
		  location.href='/admin/Operate/bonusNumDel?type={:input("get.type")}&id='+id
		});
}

</script>
{/block}
 
